package com.ny.zmb.openapi.controller;

import com.alibaba.fastjson.JSONObject;
import com.ny.zmb.openapi.util.YsMerChantUtil;
import com.ny.zmb.openapi.ysutil.publicInterface.QueryAmountReqCommand;
import org.junit.jupiter.api.Test;
import org.springframework.boot.test.context.SpringBootTest;

import javax.annotation.Resource;

@SpringBootTest
public class MerController {

    @Resource
    private YsMerChantUtil ysMerChantUtil;

    /**
     * 商户查询查询银行卡
     */
    @Test
    public void bankAccountQuery(){
        QueryAmountReqCommand command = new QueryAmountReqCommand();
        command.setMerchantNo("826513153310523");
        JSONObject jsonObject = ysMerChantUtil.bankAccountQuery(command);
        System.out.println(jsonObject.toJSONString());
    }
}
